import request from '@/utils/request'

// 代码生成已选数据表列表接口
export function generateTable(params: any) {
    return request.get({ url: '/tools.generator/generateTable', params })
}

// 数据表列表接口
export function dataTable(params: any) {
    return request.get({ url: '/tools.generator/dataTable', params })
}

//选择要生成代码的数据表
export function selectTable(params: any) {
    return request.post({ url: '/tools.generator/selectTable', params })
}

// 已选择的数据表详情
export function tableDetail(params: any) {
    return request.get({ url: '/tools.generator/detail', params })
}

//同步字段
export function syncColumn(params: any) {
    return request.post({ url: '/tools.generator/syncColumn', params })
}

//删除已选择的数据表
export function generateDelete(params: any) {
    return request.post({ url: '/tools.generator/delete', params })
}

//编辑已选表字段
export function generateEdit(params: any) {
    return request.post({ url: '/tools.generator/edit', params })
}

//预览代码
export function generatePreview(params: any) {
    return request.post({ url: '/tools.generator/preview', params })
}

//生成代码
export function generateCode(params: any) {
    return request.post({ url: '/tools.generator/generate', params })
}
//获取用户字段显示
export function getCommonFieldDisplay(params: any) {
    return request.post({ url: '/order.inventory/getCommonFieldDisplay', params })
}
//更新用户字段显示
export function setCommonFieldDisplay(params: any) {
    return request.post({ url: '/order.inventory/setCommonFieldDisplay', params })
}
//获取是否有消息
export function orderNotice(params: any) {
    return request.post({ url: '/notice.notice/orderNotice', params })
}
//添加请款单详情数量统计
export function financeOrderNotice() {
    return request.post({ url: '/notice.notice/financeOrderNotice' })
}
//获取是否有消息--报废
export function scrapOrderNotice(params: any) {
    return request.post({ url: '/notice.notice/scrapOrderNotice', params })
}
//下载附件接口
export function zip(params: any) {
    return request.post({ url: '/download/zip', params })
}
//获取仓库级别
export function getType(params: any) {
    return request.post({ url: '/warehouse.warehouse/getType', params })
}